package com.example.booksystem.service;


import com.example.booksystem.model.Book;
import org.springframework.data.domain.Page;

import java.util.List;

public interface BookService {
    List<Book> getAllBooks();
    void saveBook(Book book);


    //通过图书名来查询
    List<Book> findByNameContaining(String name);


    Book getBookByid(Long id);
    void deleteBookByid(Long id);

    Page<Book> findPaginated(int pageNo, int pageSize, String sortField, String sortDirection);



}
